cmake_minimum_required(VERSION 3.5)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-std=c++11 -lapue")

project(process)

add_executable(main src/main.cpp)
# add_executable(thread src/Threadmain.cpp)
# add_executable(threadJoin src/ThreadJoin.cpp)
add_executable(threadLock src/ThreadLock.cpp)

target_include_directories(threadLock PRIVATE include/)

find_package(Threads)
# target_link_libraries(thread ${CMAKE_THREAD_LIBS_INIT})
# target_link_libraries(threadJoin ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(threadLock ${CMAKE_THREAD_LIBS_INIT})
